//Luokasta cNum peritty cRKN - Runge-Kutta-Nyström menetelmän esittely.
//
//Joonas Koskinen
//Pro Gradu Työ
//Jyväskylän Yliopisto

#ifndef CRKN
#define CRKN
#include "cNum.h"
#include <math.h>

class RKN:public Num {
public:
	RKN();
	RKN(double ivy, double ivdy);
	~RKN();
	virtual void methodStep(double& step, vector<double> &xx, vector<double> &yy, vector<double> &dy, cDY * DY, cPot * V);
	//TODO:  If Schrödinger equation is the active DE, then use the simplified and 
	//slightly faster version of the method.
	//		virtual void method_SE(cDY* DY, cPot* V);
};

#endif
